import xxRequest from "./service"
const cookie = wx.getStorageSync('cookies')
// 获取播客轮播图
export function getPodcastBanner(params) {
  return xxRequest.get("/dj/banner")
}
// 获取播客个性推荐
export function getPodcastRecommend(limit=10) {
  return xxRequest.get("/dj/personalize/recommend",{limit})
}
// 获取我的播客
export function getMyPodcast(uid) {
  return xxRequest.get("/user/audio",{uid,cookie})
}
// 我喜欢的播客
export function getMySublist() {
  return xxRequest.get("/dj/sublist",{cookie})
}
// 获取播客分类
export function getPodcastCatelist() {
  return xxRequest.get("/dj/catelist")
}
// 根据分类id 获取内容
export function getPodcastCateDetail(type) {
  return xxRequest.get("/dj/recommend/type",{type})
}
// 根据播客单id 获取歌单内容
export function getPodcastProgram(rid) {
  return xxRequest.get("/dj/program",{rid})
}